<template>
  <div class="CartRecommend"> 
    <div
      class="CartRecommend-item" v-for="(item, index) in recommend" :key="index">
      <a :href="item.link">
        <img :src="item.image" alt="">
        <div>{{item.title}}</div>
      </a>
    </div>
  </div>
</template>

<script>
export default {
  name: 'CartRecommend',
  props: {
    recommend: Array,
    default () {
      return []
    }
  }
}
</script>

<style scoped>
.CartRecommend {
  display: flex;
  width: 100%;
  text-align: center;
  font-size: 12px;
  padding: 10px 0 20px ;
  border-bottom: 10px solid #eee ;
}
.CartRecommend-item {
  flex: 1;
}
.CartRecommend-item img{
  width: 100%;
  width: 70px;
  height: 80px;
  margin-bottom: 10px;
}
</style>>